﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" Async="true"
    CodeBehind="AddCricketGround.aspx.vb" Inherits="CricketForum.AddCricketGround" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 200px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Add Cricket Stadium :
    </h2>
    <table width="100%">
        <tr>
            <td class="style1">
                Stadium Name
            </td>
            <td>
                <asp:TextBox ID="txtStadiumName" runat="server" Width="500px" MaxLength="500"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtStadiumName" ErrorMessage="Required  Stadium Name" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Address
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Width="500px" MaxLength="500"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtAddress" ErrorMessage="Required Address" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                City
            </td>
            <td>
                <asp:TextBox ID="txtCity" runat="server" Width="200px" MaxLength="255"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtCity" ErrorMessage="Required City" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                PostCode
            </td>
            <td>
                <asp:TextBox ID="txtPostCode" runat="server"  Width="200px" MaxLength="255" ></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtPostCode" ErrorMessage="Required PostCode" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Country
            </td>
            <td>
                <asp:TextBox ID="txtCountry" runat="server"  Width="200px" MaxLength="255"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtCountry" ErrorMessage="Required Country" ValidationGroup="AddCricInfoComments"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Phone Number
            </td>
            <td>
                <asp:TextBox ID="txtPhoneNumber" runat="server"  Width="200px" MaxLength="255"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="style1">
                URL
            </td>
            <td>
                <asp:TextBox ID="txtURL" runat="server"  Width="500px"></asp:TextBox>
            </td>
            <td>
                <asp:RegularExpressionValidator ID="urlValidator" runat="server" ErrorMessage="Not a valid URL"
                    CssClass="ErrorMessage" ValidationExpression="^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;amp;%\$#_]*)?$"
                    ControlToValidate="txtURL" ValidationGroup="AddCricInfoComments"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Stadium Picture
            </td>
            <td>
                <asp:FileUpload ID="fuProfilePicture" runat="server" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:center">
                <asp:Button ID="btnSave" runat="server" Text="Save Cricket Stadium" ValidationGroup="AddCricInfoComments" />
            </td>
        </tr>
    </table>
</asp:Content>
